import{r as a,S as o,o as g,W as l}from"./index-Cru3zDJN.js";function h(){const s=a([]),e=a(!0),i=a("nohide"),r=[{label:"日期",prop:"date",hide:()=>select.value==="no"},{label:"姓名",prop:"name",hide:()=>select.value==="no"},{label:"地址",prop:"address",hide:()=>select.value==="no"}],u=o({pageSize:20,currentPage:1,pageSizes:[20,40,60],total:0,align:"right",background:!0,small:!1}),n=o({text:"正在加载第一页...",viewBox:"-10, -10, 50, 50",spinner:`
        <path class="path" d="
          M 30 15
          L 28 17
          M 25.61 25.61
          A 15 15, 0, 0, 1, 15 30
          A 15 15, 0, 1, 1, 27.99 7.5
          L 15 15
        " style="stroke-width: 4px; fill: rgba(0, 0, 0, 0)"/>
      `}),c={offsetBottom:110};function d(t){console.log("onSizeChange",t)}function f(t){n.text=`正在加载第${t}页...`,e.value=!0,l(600).then(()=>{e.value=!1})}return g(()=>{l(600).then(()=>{e.value=!1})}),{loading:e,columns:r,dataList:s,pagination:u,loadingConfig:n,adaptiveConfig:c,hideVal:i,onSizeChange:d,onCurrentChange:f}}export{h as useColumns};
